package com.camunda.workflow.controller.gateway.EventBased;

import org.camunda.bpm.engine.RuntimeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class SendSignalController {
    @Resource
    private RuntimeService runtimeService;
    @GetMapping("sendSignal")
    public boolean sendSignal() {
        runtimeService.createSignalEvent("Signal_Direct_Leader").send();
        return true;
    }

}
